const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');

module.exports = merge(common, {
  mode: 'development',
  devtool: 'inline-source-map',
  module: {
    rules: [
      {
        //使用正则匹配两个
        test: /\.(le|c)ss$/,
        use: [
          'vue-style-loader',
          'css-loader',
          'less-loader',
          "postcss-loader"  //先添加前缀
        ]
      },
    ]
  },
  devServer: {
    contentBase: './dist',
  },
  plugins: [

  ],
});